package es.cea.listener;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import es.cea.web.stat;

/**
 * Application Lifecycle Listener implementation class MiListenerSesion
 *
 */
@WebListener
public class MiListenerSesion implements HttpSessionListener {

    /**
     * Default constructor. 
     */
    public MiListenerSesion() {
        // TODO Auto-generated constructor stub
    }

	public void sessionCreated(HttpSessionEvent arg0) {
        Set<stat>estadisticas = new HashSet<stat>();        
        arg0.getSession().setAttribute("estadisticas",estadisticas);
    }

    public void sessionDestroyed(HttpSessionEvent arg0) {
        // TODO Auto-generated method stub
    }
	
}
